package com.kelvin.oocl.crm.service;

import com.kelvin.oocl.crm.entity.Command;
import com.kelvin.oocl.crm.entity.Customer;
import com.kelvin.oocl.crm.exception.ParameterBadFormatException;
import com.kelvin.oocl.crm.util.MyLinkList;

public interface CommandParser {
	
	/**
	 * 解析查询命令
	 * @param commond
	 * @return
	 */
	public MyLinkList<Customer> parseFind(Command command) throws ParameterBadFormatException;
	
	/**
	 * 解析add命令
	 * @param commond
	 * @return
	 */
	public boolean parseAdd(Command command) throws ParameterBadFormatException;
	
	/**
	 * 解析delete命令
	 * @param commond
	 * @return
	 */
	public boolean parseDelete(Command command) throws ParameterBadFormatException;
	
	/**
	 * 解析update命令
	 * @param commond
	 * @return
	 */
	public boolean parseUpdate(Command command) throws ParameterBadFormatException;
	
	/**
	 * 解析sort命令
	 * @param commond
	 * @return
	 */
	public  MyLinkList<Customer> parseSort(Command command) throws ParameterBadFormatException;
}
